﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/MasterPage.master" AutoEventWireup="true" CodeFile="ShowAd.aspx.cs" Inherits="ShowAd" %>
<%@ Register src="~/Controls/CategoryDropDownList.ascx" tagname="CategoryDropDownList" tagprefix="uc2" %>
<%@ Register src="~/Controls/AdvertismentsList.ascx" tagname="AdvertismentsList" tagprefix="uc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="JQueryContent" Runat="Server">
    
    <script type="text/javascript">
    $(function () {
        $('a.lightbox').lightBox({ fixedNavigation: true });
    });
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="section medium">
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList" CssClass="messageBox error" HeaderText="Please correct the following errors:" meta:resourcekey="lblValiationSummaryResource1" />

    <div class="messageBox">
            <h2><asp:Label ID="lblAdType" runat="server" /> ; <asp:Label ID="lblCategoryTitle" runat="server" Text="" ></asp:Label> : <asp:Literal ID="lblTitle" runat="server"></asp:Literal></h2>
           <asp:Label ID="lblMessage" runat="server" meta:resourcekey="lblMessageResource1"></asp:Label>           
    </div>
        
   <fieldset>
    <ol>
            <li><asp:Label ID="lblDescription" runat="server" meta:resourcekey="lblDescriptionResource1" Text="Description: "></asp:Label></li>
            <li><asp:Label ID="lblPrice" runat="server" meta:resourcekey="lblPriceResource1" Text="Price:"></asp:Label> <asp:Label ID="lblCurrency" runat="server" meta:resourcekey="lblCurrencyResource1" Text="&euro;"></asp:Label> <asp:Literal ID="txtPrice" runat="server" /></li>
            <li><asp:Label ID="lblLocation" runat="server" meta:resourcekey="lblLocationResource1" Text="Location:" Visible="false"></asp:Label>&#160;<asp:Literal ID="txtLocation" runat="server"></asp:Literal> </li>
            <li><asp:Label ID="lblUrl" runat="server" meta:resourcekey="lblUrlResource1" Text="Url:" Visible="false"></asp:Label>&#160;<asp:HyperLink ID="hlUrl" runat="server"></asp:HyperLink></li>
            <li><asp:Label ID="lblUserNickname" runat="server" meta:resourcekey="lblNicknameResource1" Text="Posted by:" Visible="false"></asp:Label>&#160;<asp:HyperLink ID="hlNickname" runat="server"></asp:HyperLink></li>
            <li>
            <div class="gallery">
                <asp:Repeater ID="RepeaterImages" runat="server">
                    <HeaderTemplate><ul></HeaderTemplate>
                    <ItemTemplate>
                        <li>
                            <a href="PhotoDisplay.ashx?size=full&amp;photoid=<%# Container.DataItem %>" title="" class="lightbox">
                                <img src="PhotoDisplay.ashx?size=medium&amp;photoid=<%# Container.DataItem %>" alt="Photo" />
                            </a>                        
                        </li>
                    </ItemTemplate>
                    <FooterTemplate></ul></FooterTemplate>
                </asp:Repeater>
            </div>
            </li>             
        </ol>
    </fieldset>
    

    <fieldset>
    <ol>
        <li>
            <asp:Label ID="lblMessageTitle" runat="server" Text="Leave a message" meta:resourcekey="lblMessageTitleResource1"></asp:Label>               
            </li>
            <asp:LoginView ID="LoginView1" runat="server">
                <AnonymousTemplate>
                    <li>
                        <asp:Label ID="lblEmailFrom" runat="server" Text="Your email address" meta:resourcekey="lblEmailFromResource1"></asp:Label> <asp:TextBox ID="txtEmailFrom" runat="server"></asp:TextBox>
                        <em><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Your email address is mandatory" Text="*" meta:resourcekey="EmailFromRequiredFieldValidatorResource1" ControlToValidate="txtEmailFrom"></asp:RequiredFieldValidator></em>
                    </li>
                </AnonymousTemplate>
            </asp:LoginView>            
            <li>
                <asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine" Columns="64" Rows="8"></asp:TextBox> 
                <em><asp:RequiredFieldValidator ID="MessageRequiredFieldValidator" runat="server" ErrorMessage="Message is a required Field" Text="*" meta:resourcekey="MessageRequiredFieldValidatorResource1" ControlToValidate="txtMessage"></asp:RequiredFieldValidator></em>       
            </li>
            <li class="buttonBar">
                <asp:Button ID="btnSubmut" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
            </li>
    </ol>
    </fieldset>
</div>
  


</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" Runat="server">
<div class="section small">

    <uc1:AdvertismentsList ID="AdvertismentsList1" runat="server" />

</div>
</asp:Content>



